<template>
    <div>
        <!-- 群主模式 -->
        <qzms @changeColor="changeColorFun"></qzms>

        <table class="wq text-center" border="0" cellpadding="0" cellspacing="1" style="width: 60%;margin: 13px auto 0px;">
            <tr class="t_list_caption">
                <td v-for="(item,index) in tablist" :key="index" :class="type == index ? 'active': ''" @click="changeFun(index)">{{item}}</td>
            </tr>
        </table>

        <table class="wq text-center" border="0" cellpadding="0" cellspacing="1">
             <tr class="t_list_caption">
               <th>号码</th>
               <th colspan="2">赔率</th>
               <th>号码</th>
               <th colspan="2">赔率</th>
               <th>号码</th>
               <th colspan="2">赔率</th>
               <th>号码</th>
               <th colspan="2">赔率</th>
               <th>号码</th>
               <th colspan="2">赔率</th>
            </tr>
            <tr class="t_td_text">
                <td :class="moneydata[tablist[type] + ':单码:01'] || moneydata[tablist[type] + ':单码:01'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="redBalls">01</span></td>
                <td :class="moneydata[tablist[type] + ':单码:01'] || moneydata[tablist[type] + ':单码:01'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:01']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:01'] || moneydata[tablist[type] + ':单码:01'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:01']" @focus="quickbetFuns($event,tablist[type] + ':单码:01')"></td>
                <td :class="moneydata[tablist[type] + ':单码:11'] || moneydata[tablist[type] + ':单码:11'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="greenBalls">11</span></td>
                <td :class="moneydata[tablist[type] + ':单码:11'] || moneydata[tablist[type] + ':单码:11'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:11']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:11'] || moneydata[tablist[type] + ':单码:11'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:11']" @focus="quickbetFuns($event,tablist[type] + ':单码:11')"></td>
                <td :class="moneydata[tablist[type] + ':单码:21'] || moneydata[tablist[type] + ':单码:21'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="greenBalls">21</span></td>
                <td :class="moneydata[tablist[type] + ':单码:21'] || moneydata[tablist[type] + ':单码:21'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:21']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:21'] || moneydata[tablist[type] + ':单码:21'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:21']" @focus="quickbetFuns($event,tablist[type] + ':单码:21')"></td>
                <td :class="moneydata[tablist[type] + ':单码:31'] || moneydata[tablist[type] + ':单码:31'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="blueBalls">31</span></td>
                <td :class="moneydata[tablist[type] + ':单码:31'] || moneydata[tablist[type] + ':单码:31'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:31']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:31'] || moneydata[tablist[type] + ':单码:31'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:31']" @focus="quickbetFuns($event,tablist[type] + ':单码:31')"></td>
                <td :class="moneydata[tablist[type] + ':单码:41'] || moneydata[tablist[type] + ':单码:41'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="blueBalls">41</span></td>
                <td :class="moneydata[tablist[type] + ':单码:41'] || moneydata[tablist[type] + ':单码:41'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:41']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:41'] || moneydata[tablist[type] + ':单码:41'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:41']" @focus="quickbetFuns($event,tablist[type] + ':单码:41')"></td>
            </tr>
            <tr class="t_td_text">
                <td :class="moneydata[tablist[type] + ':单码:02'] || moneydata[tablist[type] + ':单码:02'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="redBalls">02</span></td>
                <td :class="moneydata[tablist[type] + ':单码:02'] || moneydata[tablist[type] + ':单码:02'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:02']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:02'] || moneydata[tablist[type] + ':单码:02'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:02']" @focus="quickbetFuns($event,tablist[type] + ':单码:02')"></td>
                <td :class="moneydata[tablist[type] + ':单码:12'] || moneydata[tablist[type] + ':单码:12'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="redBalls">12</span></td>
                <td :class="moneydata[tablist[type] + ':单码:12'] || moneydata[tablist[type] + ':单码:12'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:12']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:12'] || moneydata[tablist[type] + ':单码:12'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:12']" @focus="quickbetFuns($event,tablist[type] + ':单码:12')"></td>
                <td :class="moneydata[tablist[type] + ':单码:22'] || moneydata[tablist[type] + ':单码:22'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="greenBalls">22</span></td>
                <td :class="moneydata[tablist[type] + ':单码:22'] || moneydata[tablist[type] + ':单码:22'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:22']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:22'] || moneydata[tablist[type] + ':单码:22'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:22']" @focus="quickbetFuns($event,tablist[type] + ':单码:22')"></td>
                <td :class="moneydata[tablist[type] + ':单码:32'] || moneydata[tablist[type] + ':单码:32'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="greenBalls">32</span></td>
                <td :class="moneydata[tablist[type] + ':单码:32'] || moneydata[tablist[type] + ':单码:32'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:32']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:32'] || moneydata[tablist[type] + ':单码:32'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:32']" @focus="quickbetFuns($event,tablist[type] + ':单码:32')"></td>
                <td :class="moneydata[tablist[type] + ':单码:42'] || moneydata[tablist[type] + ':单码:42'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="blueBalls">42</span></td>
                <td :class="moneydata[tablist[type] + ':单码:42'] || moneydata[tablist[type] + ':单码:42'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:42']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:42'] || moneydata[tablist[type] + ':单码:42'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:42']" @focus="quickbetFuns($event,tablist[type] + ':单码:42')"></td>
            </tr>
            <tr class="t_td_text">
                <td :class="moneydata[tablist[type] + ':单码:03'] || moneydata[tablist[type] + ':单码:03'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="blueBalls">03</span></td>
                <td :class="moneydata[tablist[type] + ':单码:03'] || moneydata[tablist[type] + ':单码:03'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:03']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:03'] || moneydata[tablist[type] + ':单码:03'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:03']" @focus="quickbetFuns($event,tablist[type] + ':单码:03')"></td>
                <td :class="moneydata[tablist[type] + ':单码:13'] || moneydata[tablist[type] + ':单码:13'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="redBalls">13</span></td>
                <td :class="moneydata[tablist[type] + ':单码:13'] || moneydata[tablist[type] + ':单码:13'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:13']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:13'] || moneydata[tablist[type] + ':单码:13'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:13']" @focus="quickbetFuns($event,tablist[type] + ':单码:13')"></td>
                <td :class="moneydata[tablist[type] + ':单码:23'] || moneydata[tablist[type] + ':单码:23'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="redBalls">23</span></td>
                <td :class="moneydata[tablist[type] + ':单码:23'] || moneydata[tablist[type] + ':单码:23'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:23']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:23'] || moneydata[tablist[type] + ':单码:23'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:23']" @focus="quickbetFuns($event,tablist[type] + ':单码:23')"></td>
                <td :class="moneydata[tablist[type] + ':单码:33'] || moneydata[tablist[type] + ':单码:33'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="greenBalls">33</span></td>
                <td :class="moneydata[tablist[type] + ':单码:33'] || moneydata[tablist[type] + ':单码:33'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:33']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:33'] || moneydata[tablist[type] + ':单码:33'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:33']" @focus="quickbetFuns($event,tablist[type] + ':单码:33')"></td>
                <td :class="moneydata[tablist[type] + ':单码:43'] || moneydata[tablist[type] + ':单码:43'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="greenBalls">43</span></td>
                <td :class="moneydata[tablist[type] + ':单码:43'] || moneydata[tablist[type] + ':单码:43'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:43']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:43'] || moneydata[tablist[type] + ':单码:43'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:43']" @focus="quickbetFuns($event,tablist[type] + ':单码:43')"></td>
            </tr>
            <tr class="t_td_text">
                <td :class="moneydata[tablist[type] + ':单码:04'] || moneydata[tablist[type] + ':单码:04'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="blueBalls">04</span></td>
                <td :class="moneydata[tablist[type] + ':单码:04'] || moneydata[tablist[type] + ':单码:04'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:04']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:04'] || moneydata[tablist[type] + ':单码:04'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:04']" @focus="quickbetFuns($event,tablist[type] + ':单码:04')"></td>
                <td :class="moneydata[tablist[type] + ':单码:14'] || moneydata[tablist[type] + ':单码:14'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="blueBalls">14</span></td>
                <td :class="moneydata[tablist[type] + ':单码:14'] || moneydata[tablist[type] + ':单码:14'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:14']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:14'] || moneydata[tablist[type] + ':单码:14'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:14']" @focus="quickbetFuns($event,tablist[type] + ':单码:14')"></td>
                <td :class="moneydata[tablist[type] + ':单码:24'] || moneydata[tablist[type] + ':单码:24'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="redBalls">24</span></td>
                <td :class="moneydata[tablist[type] + ':单码:24'] || moneydata[tablist[type] + ':单码:24'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:24']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:24'] || moneydata[tablist[type] + ':单码:24'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:24']" @focus="quickbetFuns($event,tablist[type] + ':单码:24')"></td>
                <td :class="moneydata[tablist[type] + ':单码:34'] || moneydata[tablist[type] + ':单码:34'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="redBalls">34</span></td>
                <td :class="moneydata[tablist[type] + ':单码:34'] || moneydata[tablist[type] + ':单码:34'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:34']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:34'] || moneydata[tablist[type] + ':单码:34'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:34']" @focus="quickbetFuns($event,tablist[type] + ':单码:34')"></td>
                <td :class="moneydata[tablist[type] + ':单码:44'] || moneydata[tablist[type] + ':单码:44'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="greenBalls">44</span></td>
                <td :class="moneydata[tablist[type] + ':单码:44'] || moneydata[tablist[type] + ':单码:44'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:44']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:44'] || moneydata[tablist[type] + ':单码:44'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:44']" @focus="quickbetFuns($event,tablist[type] + ':单码:44')"></td>
            </tr>
            <tr class="t_td_text">
                <td :class="moneydata[tablist[type] + ':单码:05'] || moneydata[tablist[type] + ':单码:05'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="greenBalls">05</span></td>
                <td :class="moneydata[tablist[type] + ':单码:05'] || moneydata[tablist[type] + ':单码:05'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:05']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:05'] || moneydata[tablist[type] + ':单码:05'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:05']" @focus="quickbetFuns($event,tablist[type] + ':单码:05')"></td>
                <td :class="moneydata[tablist[type] + ':单码:15'] || moneydata[tablist[type] + ':单码:15'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="blueBalls">15</span></td>
                <td :class="moneydata[tablist[type] + ':单码:15'] || moneydata[tablist[type] + ':单码:15'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:15']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:15'] || moneydata[tablist[type] + ':单码:15'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:15']" @focus="quickbetFuns($event,tablist[type] + ':单码:15')"></td>
                <td :class="moneydata[tablist[type] + ':单码:25'] || moneydata[tablist[type] + ':单码:25'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="blueBalls">25</span></td>
                <td :class="moneydata[tablist[type] + ':单码:25'] || moneydata[tablist[type] + ':单码:25'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:25']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:25'] || moneydata[tablist[type] + ':单码:25'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:25']" @focus="quickbetFuns($event,tablist[type] + ':单码:25')"></td>
                <td :class="moneydata[tablist[type] + ':单码:35'] || moneydata[tablist[type] + ':单码:35'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="redBalls">35</span></td>
                <td :class="moneydata[tablist[type] + ':单码:35'] || moneydata[tablist[type] + ':单码:35'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:35']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:35'] || moneydata[tablist[type] + ':单码:35'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:35']" @focus="quickbetFuns($event,tablist[type] + ':单码:35')"></td>
                <td :class="moneydata[tablist[type] + ':单码:45'] || moneydata[tablist[type] + ':单码:45'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="redBalls">45</span></td>
                <td :class="moneydata[tablist[type] + ':单码:45'] || moneydata[tablist[type] + ':单码:45'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:45']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:45'] || moneydata[tablist[type] + ':单码:45'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:45']" @focus="quickbetFuns($event,tablist[type] + ':单码:45')"></td>
            </tr>
            <tr class="t_td_text">
                <td :class="moneydata[tablist[type] + ':单码:06'] || moneydata[tablist[type] + ':单码:06'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="greenBalls">06</span></td>
                <td :class="moneydata[tablist[type] + ':单码:06'] || moneydata[tablist[type] + ':单码:06'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:06']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:06'] || moneydata[tablist[type] + ':单码:06'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:06']" @focus="quickbetFuns($event,tablist[type] + ':单码:06')"></td>
                <td :class="moneydata[tablist[type] + ':单码:16'] || moneydata[tablist[type] + ':单码:16'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="greenBalls">16</span></td>
                <td :class="moneydata[tablist[type] + ':单码:16'] || moneydata[tablist[type] + ':单码:16'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:16']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:16'] || moneydata[tablist[type] + ':单码:16'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:16']" @focus="quickbetFuns($event,tablist[type] + ':单码:16')"></td>
                <td :class="moneydata[tablist[type] + ':单码:26'] || moneydata[tablist[type] + ':单码:26'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="blueBalls">26</span></td>
                <td :class="moneydata[tablist[type] + ':单码:26'] || moneydata[tablist[type] + ':单码:26'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:26']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:26'] || moneydata[tablist[type] + ':单码:26'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:26']" @focus="quickbetFuns($event,tablist[type] + ':单码:26')"></td>
                <td :class="moneydata[tablist[type] + ':单码:36'] || moneydata[tablist[type] + ':单码:36'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="blueBalls">36</span></td>
                <td :class="moneydata[tablist[type] + ':单码:36'] || moneydata[tablist[type] + ':单码:36'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:36']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:36'] || moneydata[tablist[type] + ':单码:36'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:36']" @focus="quickbetFuns($event,tablist[type] + ':单码:36')"></td>
                <td :class="moneydata[tablist[type] + ':单码:46'] || moneydata[tablist[type] + ':单码:46'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="redBalls">46</span></td>
                <td :class="moneydata[tablist[type] + ':单码:46'] || moneydata[tablist[type] + ':单码:46'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:46']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:46'] || moneydata[tablist[type] + ':单码:46'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:46']" @focus="quickbetFuns($event,tablist[type] + ':单码:46')"></td>
            </tr>
            <tr class="t_td_text">
                <td :class="moneydata[tablist[type] + ':单码:07'] || moneydata[tablist[type] + ':单码:07'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="redBalls">07</span></td>
                <td :class="moneydata[tablist[type] + ':单码:07'] || moneydata[tablist[type] + ':单码:07'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:07']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:07'] || moneydata[tablist[type] + ':单码:07'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:07']" @focus="quickbetFuns($event,tablist[type] + ':单码:07')"></td>
                <td :class="moneydata[tablist[type] + ':单码:17'] || moneydata[tablist[type] + ':单码:17'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="greenBalls">17</span></td>
                <td :class="moneydata[tablist[type] + ':单码:17'] || moneydata[tablist[type] + ':单码:17'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:17']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:17'] || moneydata[tablist[type] + ':单码:17'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:17']" @focus="quickbetFuns($event,tablist[type] + ':单码:17')"></td>
                <td :class="moneydata[tablist[type] + ':单码:27'] || moneydata[tablist[type] + ':单码:27'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="greenBalls">27</span></td>
                <td :class="moneydata[tablist[type] + ':单码:27'] || moneydata[tablist[type] + ':单码:27'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:27']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:27'] || moneydata[tablist[type] + ':单码:27'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:27']" @focus="quickbetFuns($event,tablist[type] + ':单码:27')"></td>
                <td :class="moneydata[tablist[type] + ':单码:37'] || moneydata[tablist[type] + ':单码:37'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="blueBalls">37</span></td>
                <td :class="moneydata[tablist[type] + ':单码:37'] || moneydata[tablist[type] + ':单码:37'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:37']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:37'] || moneydata[tablist[type] + ':单码:37'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:37']" @focus="quickbetFuns($event,tablist[type] + ':单码:37')"></td>
                <td :class="moneydata[tablist[type] + ':单码:47'] || moneydata[tablist[type] + ':单码:47'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="blueBalls">47</span></td>
                <td :class="moneydata[tablist[type] + ':单码:47'] || moneydata[tablist[type] + ':单码:47'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:47']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:47'] || moneydata[tablist[type] + ':单码:47'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:47']" @focus="quickbetFuns($event,tablist[type] + ':单码:47')"></td>
            </tr>
            <tr class="t_td_text">
                <td :class="moneydata[tablist[type] + ':单码:08'] || moneydata[tablist[type] + ':单码:08'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="redBalls">08</span></td>
                <td :class="moneydata[tablist[type] + ':单码:08'] || moneydata[tablist[type] + ':单码:08'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:08']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:08'] || moneydata[tablist[type] + ':单码:08'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:08']" @focus="quickbetFuns($event,tablist[type] + ':单码:08')"></td>
                <td :class="moneydata[tablist[type] + ':单码:18'] || moneydata[tablist[type] + ':单码:18'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="redBalls">18</span></td>
                <td :class="moneydata[tablist[type] + ':单码:18'] || moneydata[tablist[type] + ':单码:18'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:18']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:18'] || moneydata[tablist[type] + ':单码:18'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:18']" @focus="quickbetFuns($event,tablist[type] + ':单码:18')"></td>
                <td :class="moneydata[tablist[type] + ':单码:28'] || moneydata[tablist[type] + ':单码:28'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="greenBalls">28</span></td>
                <td :class="moneydata[tablist[type] + ':单码:28'] || moneydata[tablist[type] + ':单码:28'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:28']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:28'] || moneydata[tablist[type] + ':单码:28'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:28']" @focus="quickbetFuns($event,tablist[type] + ':单码:28')"></td>
                <td :class="moneydata[tablist[type] + ':单码:38'] || moneydata[tablist[type] + ':单码:38'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="greenBalls">38</span></td>
                <td :class="moneydata[tablist[type] + ':单码:38'] || moneydata[tablist[type] + ':单码:38'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:38']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:38'] || moneydata[tablist[type] + ':单码:38'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:38']" @focus="quickbetFuns($event,tablist[type] + ':单码:38')"></td>
                <td :class="moneydata[tablist[type] + ':单码:48'] || moneydata[tablist[type] + ':单码:48'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="blueBalls">48</span></td>
                <td :class="moneydata[tablist[type] + ':单码:48'] || moneydata[tablist[type] + ':单码:48'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:48']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:48'] || moneydata[tablist[type] + ':单码:48'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:48']" @focus="quickbetFuns($event,tablist[type] + ':单码:48')"></td>
            </tr>
            <tr class="t_td_text">
                <td :class="moneydata[tablist[type] + ':单码:09'] || moneydata[tablist[type] + ':单码:09'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="blueBalls">09</span></td>
                <td :class="moneydata[tablist[type] + ':单码:09'] || moneydata[tablist[type] + ':单码:09'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:09']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:09'] || moneydata[tablist[type] + ':单码:09'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:09']" @focus="quickbetFuns($event,tablist[type] + ':单码:09')"></td>
                <td :class="moneydata[tablist[type] + ':单码:19'] || moneydata[tablist[type] + ':单码:19'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="redBalls">19</span></td>
                <td :class="moneydata[tablist[type] + ':单码:19'] || moneydata[tablist[type] + ':单码:19'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:19']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:19'] || moneydata[tablist[type] + ':单码:19'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:19']" @focus="quickbetFuns($event,tablist[type] + ':单码:19')"></td>
                <td :class="moneydata[tablist[type] + ':单码:29'] || moneydata[tablist[type] + ':单码:29'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="redBalls">29</span></td>
                <td :class="moneydata[tablist[type] + ':单码:29'] || moneydata[tablist[type] + ':单码:29'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:29']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:29'] || moneydata[tablist[type] + ':单码:29'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:29']" @focus="quickbetFuns($event,tablist[type] + ':单码:29')"></td>
                <td :class="moneydata[tablist[type] + ':单码:39'] || moneydata[tablist[type] + ':单码:39'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="greenBalls">39</span></td>
                <td :class="moneydata[tablist[type] + ':单码:39'] || moneydata[tablist[type] + ':单码:39'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:39']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:39'] || moneydata[tablist[type] + ':单码:39'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:39']" @focus="quickbetFuns($event,tablist[type] + ':单码:39')"></td>
                <td :class="moneydata[tablist[type] + ':单码:49'] || moneydata[tablist[type] + ':单码:49'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="greenBalls">49</span></td>
                <td :class="moneydata[tablist[type] + ':单码:49'] || moneydata[tablist[type] + ':单码:49'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:49']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:49'] || moneydata[tablist[type] + ':单码:49'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:49']" @focus="quickbetFuns($event,tablist[type] + ':单码:49')"></td>
            </tr>
            <tr class="t_td_text">
                <td :class="moneydata[tablist[type] + ':单码:10'] || moneydata[tablist[type] + ':单码:10'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="blueBalls">10</span></td>
                <td :class="moneydata[tablist[type] + ':单码:10'] || moneydata[tablist[type] + ':单码:10'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:10']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:10'] || moneydata[tablist[type] + ':单码:10'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:10']" @focus="quickbetFuns($event,tablist[type] + ':单码:10')"></td>
                <td :class="moneydata[tablist[type] + ':单码:20'] || moneydata[tablist[type] + ':单码:20'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="blueBalls">20</span></td>
                <td :class="moneydata[tablist[type] + ':单码:20'] || moneydata[tablist[type] + ':单码:20'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:20']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:20'] || moneydata[tablist[type] + ':单码:20'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:20']" @focus="quickbetFuns($event,tablist[type] + ':单码:20')"></td>
                <td :class="moneydata[tablist[type] + ':单码:30'] || moneydata[tablist[type] + ':单码:30'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="redBalls">30</span></td>
                <td :class="moneydata[tablist[type] + ':单码:30'] || moneydata[tablist[type] + ':单码:30'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:30']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:30'] || moneydata[tablist[type] + ':单码:30'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:30']" @focus="quickbetFuns($event,tablist[type] + ':单码:30')"></td>
                <td :class="moneydata[tablist[type] + ':单码:40'] || moneydata[tablist[type] + ':单码:40'] == '' ? 'colorChange': ''" width="10%" class="caption_1"><span class="redBalls">40</span></td>
                <td :class="moneydata[tablist[type] + ':单码:40'] || moneydata[tablist[type] + ':单码:40'] == '' ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单码:40']}}</td>
                <td :class="moneydata[tablist[type] + ':单码:40'] || moneydata[tablist[type] + ':单码:40'] == '' ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单码:40']" @focus="quickbetFuns($event,tablist[type] + ':单码:40')"></td>
                <td colspan="3"></td>
            </tr>
        </table>
        <table class="wq text-center" border="0" cellpadding="0" cellspacing="1">
            <tr class="t_list_caption">
               <th>号码</th>
               <th colspan="2">赔率</th>
               <th>号码</th>
               <th colspan="2">赔率</th>
               <th>号码</th>
               <th colspan="2">赔率</th>
               <th>号码</th>
               <th colspan="2">赔率</th>
            </tr>
             <tr class="t_td_text">
                <td :class="moneydata[tablist[type] + ':大小:大'] ? 'colorChange': ''" width="10%" class="caption_1">正{{type+1}}-大</td>
                <td :class="moneydata[tablist[type] + ':大小:大'] ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':大小:大']}}</td>
                <td :class="moneydata[tablist[type] + ':大小:大'] ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':大小:大']" @focus="quickbetFuns($event,tablist[type] + ':大小:大')"></td>
                <td :class="moneydata[tablist[type] + ':单双:单'] ? 'colorChange': ''" width="10%" class="caption_1">正{{type+1}}-单</td>
                <td :class="moneydata[tablist[type] + ':单双:单'] ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单双:单']}}</td>
                <td :class="moneydata[tablist[type] + ':单双:单'] ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单双:单']" @focus="quickbetFuns($event,tablist[type] + ':单双:单')"></td>
                <td :class="moneydata[tablist[type] + ':合数大小:大'] ? 'colorChange': ''" width="10%" class="caption_1">正{{type+1}}-合大</td>
                <td :class="moneydata[tablist[type] + ':合数大小:大'] ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':合数大小:大']}}</td>
                <td :class="moneydata[tablist[type] + ':合数大小:大'] ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':合数大小:大']" @focus="quickbetFuns($event,tablist[type] + ':合数大小:大')"></td>
                <td :class="moneydata[tablist[type] + ':合数单双:单'] ? 'colorChange': ''" width="10%" class="caption_1"><span>正{{type+1}}-合单</span></td>
                <td :class="moneydata[tablist[type] + ':合数单双:单'] ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':合数单双:单']}}</td>
                <td :class="moneydata[tablist[type] + ':合数单双:单'] ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':合数单双:单']" @focus="quickbetFuns($event,tablist[type] + ':合数单双:单')"></td>
            </tr>
            <tr class="t_td_text">
                <td :class="moneydata[tablist[type] + ':大小:小'] ? 'colorChange': ''" width="10%" class="caption_1"><span>正{{type+1}}-小</span></td>
                <td :class="moneydata[tablist[type] + ':大小:小'] ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':大小:小']}}</td>
                <td :class="moneydata[tablist[type] + ':大小:小'] ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':大小:小']" @focus="quickbetFuns($event,tablist[type] + ':大小:小')"></td>
                <td :class="moneydata[tablist[type] + ':单双:双'] ? 'colorChange': ''" width="10%" class="caption_1"><span>正{{type+1}}-双</span></td>
                <td :class="moneydata[tablist[type] + ':单双:双'] ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':单双:双']}}</td>
                <td :class="moneydata[tablist[type] + ':单双:双'] ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':单双:双']" @focus="quickbetFuns($event,tablist[type] + ':单双:双')"></td>
                <td :class="moneydata[tablist[type] + ':合数大小:小'] ? 'colorChange': ''" width="10%" class="caption_1"><span>正{{type+1}}-合小</span></td>
                <td :class="moneydata[tablist[type] + ':合数大小:小'] ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':合数大小:小']}}</td>
                <td :class="moneydata[tablist[type] + ':合数大小:小'] ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':合数大小:小']" @focus="quickbetFuns($event,tablist[type] + ':合数大小:小')"></td>
                <td :class="moneydata[tablist[type] + ':合数单双:双'] ? 'colorChange': ''" width="10%" class="caption_1"><span>正{{type+1}}-合双</span></td>
                <td :class="moneydata[tablist[type] + ':合数单双:双'] ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':合数单双:双']}}</td>
                <td :class="moneydata[tablist[type] + ':合数单双:双'] ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':合数单双:双']" @focus="quickbetFuns($event,tablist[type] + ':合数单双:双')"></td>
            </tr>
             <tr class="t_td_text">
                <td :class="moneydata[tablist[type] + ':色波:红波'] ? 'colorChange': ''" width="10%" class="caption_1"><span>正{{type+1}}-红</span></td>
                <td :class="moneydata[tablist[type] + ':色波:红波'] ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':色波:红波']}}</td>
                <td :class="moneydata[tablist[type] + ':色波:红波'] ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':色波:红波']" @focus="quickbetFuns($event,tablist[type] + ':色波:红波')"></td>
                <td :class="moneydata[tablist[type] + ':色波:蓝波'] ? 'colorChange': ''" width="10%" class="caption_1"><span>正{{type+1}}-蓝</span></td>
                <td :class="moneydata[tablist[type] + ':色波:蓝波'] ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':色波:蓝波']}}</td>
                <td :class="moneydata[tablist[type] + ':色波:蓝波'] ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':色波:蓝波']" @focus="quickbetFuns($event,tablist[type] + ':色波:蓝波')"></td>
                <td :class="moneydata[tablist[type] + ':色波:绿波'] ? 'colorChange': ''" width="10%" class="caption_1">正{{type+1}}-绿</td>
                <td :class="moneydata[tablist[type] + ':色波:绿波'] ? 'colorChange': ''" class="colorRed bolds odds">{{ratedata[tablist[type] + ':色波:绿波']}}</td>
                <td :class="moneydata[tablist[type] + ':色波:绿波'] ? 'colorChange': ''"><input type="text" class="moneyinp" v-model="moneydata[tablist[type] + ':色波:绿波']" @focus="quickbetFuns($event,tablist[type] + ':色波:绿波')"></td>
                <td colspan="3"></td>
            </tr>
        </table>

    </div>
</template>
<style scoped>
    .t_list_caption>td{
        cursor: pointer;
    }
    .t_list_caption>td.active{
        background: url(../../../../assets/images/t.jpg) repeat-x left top;
    }
    .wq .colorChange {
        background-color: orange;
    }
</style>
<script>

    var timer = null;
    import axios from 'axios'
    import {lotterytype} from '../../../../assets/js/lotterytype.js'

    export default {
        name: "LhcZmt",
        props: {  //普通类型：String、Number、Boolean、Null    引用类型： Array、Object
            betmoney: {   //   下注金额
                type: String,
                required: true
            },
            resetinp: {   //   是否重填已下注金额  0为未下注  其他为已下注
                type: Number,
                required: true
            },
            openBet: {  //开奖  可下注
                type: Boolean,
                required: true
            },
            ninetime: {  //90s
                type: Number,
                required: true
            },
        },
        data(){
            return{
                ratedata: {},  //实时赔率
                params: {},  //菜单
                moneydata: {},
                betdataArr: [],  //下注 提交data
                nowitem: '',  //当前操作的下注item号
                arr: [],  //已下注的item  一维数组
                type: 0,  //
                tablist: [
                    '正一特',
                    '正二特',
                    '正三特',
                    '正四特',
                    '正五特',
                ],
                ruleitem: '',
                rulelist: [
                    ['单码','小码','小单','合单','合小','红波','红单','红小','0头','1尾','狗'],  //01-10  01
                    ['双码','小码','小双','合双','合小','红波','红双','红小','0头','2尾','鸡'],  //02
                    ['单码','小码','小单','合单','合小','蓝波','蓝单','蓝小','0头','3尾','猴'],  //03
                    ['双码','小码','小双','合双','合小','蓝波','蓝双','蓝小','0头','4尾','羊'],  //04 
                    ['单码','小码','小单','合单','合小','绿波','绿单','绿小','0头','5尾','马'],  //05
                    ['双码','小码','小双','合双','合小','绿波','绿双','绿小','0头','6尾','蛇'],  //06
                    ['单码','小码','小单','合单','合大','红波','红单','红小','0头','7尾','龙'],  //07
                    ['双码','小码','小双','合双','合大','红波','红双','红小','0头','8尾','兔'],  //08
                    ['单码','小码','小单','合单','合大','蓝波','蓝单','蓝小','0头','9尾','虎'],  //09
                    ['双码','小码','小双','合单','合小','蓝波','蓝双','蓝小','1头','0尾','牛'],  //10

                    ['单码','小码','小单','合双','合小','绿波','绿单','绿小','1头','1尾','鼠'],  //11-20  11
                    ['双码','小码','小双','合单','合小','红波','红双','红小','1头','2尾','猪'],  //12
                    ['单码','小码','小单','合双','合小','红波','红单','红小','1头','3尾','狗'],  //13
                    ['双码','小码','小双','合单','合小','蓝波','蓝双','蓝小','1头','4尾','鸡'],  //14  
                    ['单码','小码','小单','合双','合小','蓝波','蓝单','蓝小','1头','5尾','猴'],  //15
                    ['双码','小码','小双','合单','合大','绿波','绿双','绿小','1头','6尾','羊'],  //16
                    ['单码','小码','小单','合双','合大','绿波','绿单','绿小','1头','7尾','马'],  //17
                    ['双码','小码','小双','合单','合大','红波','红双','红小','1头','8尾','蛇'],  //18
                    ['单码','小码','小单','合双','合大','红波','红单','红小','1头','9尾','龙'],  //19
                    ['双码','小码','小双','合双','合小','蓝波','蓝双','蓝小','2头','0尾','兔'],  //20

                    ['单码','小码','小单','合单','合小','绿波','绿单','绿小','2头','1尾','虎'],  //21-30  21
                    ['双码','小码','小双','合双','合小','绿波','绿双','绿小','2头','2尾','牛'],  //22
                    ['单码','小码','小单','合单','合小','红波','红单','红小','2头','3尾','鼠'],  //23
                    ['双码','小码','小双','合双','合小','红波','红双','红小','2头','4尾','猪'],  //24
                    ['单码','大码','大单','合单','合大','蓝波','蓝单','蓝大','2头','5尾','狗'],  //25
                    ['双码','大码','大双','合双','合大','蓝波','蓝双','蓝大','2头','6尾','鸡'],  //26
                    ['单码','大码','大单','合单','合大','绿波','绿单','绿大','2头','7尾','猴'],  //27
                    ['双码','大码','大双','合双','合大','绿波','绿双','绿大','2头','8尾','羊'],  //28
                    ['单码','大码','大单','合单','合大','红波','红单','红大','2头','9尾','马'],  //29
                    ['双码','大码','大双','合单','合小','红波','红双','红大','3头','0尾','蛇'],  //30

                    ['单码','大码','大单','合双','合小','蓝波','蓝单','蓝大','3头','1尾','龙'],  //31-40  31
                    ['双码','大码','大双','合单','合小','绿波','绿双','绿大','3头','2尾','兔'],  //32
                    ['单码','大码','大单','合双','合小','绿波','绿单','绿大','3头','3尾','虎'],  //33
                    ['双码','大码','大双','合单','合大','红波','红双','红大','3头','4尾','牛'],  //34
                    ['单码','大码','大单','合双','合大','红波','红单','红大','3头','5尾','鼠'],  //35
                    ['双码','大码','大双','合单','合大','蓝波','蓝双','蓝大','3头','6尾','猪'],  //36
                    ['单码','大码','大单','合双','合大','蓝波','蓝单','蓝大','3头','7尾','狗'],  //37
                    ['双码','大码','大双','合单','合大','绿波','绿双','绿大','3头','8尾','鸡'],  //38
                    ['单码','大码','大单','合双','合大','绿波','绿单','绿大','3头','9尾','猴'],  //39
                    ['双码','大码','大双','合双','合小','红波','红双','红大','4头','0尾','羊'],  //40

                    ['单码','大码','大单','合单','合小','蓝波','蓝单','蓝大','4头','1尾','马'],  //41-49  41
                    ['双码','大码','大双','合双','合小','蓝波','蓝双','蓝大','4头','2尾','蛇'],  //42
                    ['单码','大码','大单','合单','合大','绿波','绿单','绿大','4头','3尾','龙'],  //43
                    ['双码','大码','大双','合双','合大','绿波','绿双','绿大','4头','4尾','兔'],  //44
                    ['单码','大码','大单','合单','合大','红波','红单','红大','4头','5尾','虎'],  //45
                    ['双码','大码','大双','合双','合大','红波','红双','红大','4头','6尾','牛'],  //46
                    ['单码','大码','大单','合单','合大','蓝波','蓝单','蓝大','4头','7尾','鼠'],  //47
                    ['双码','大码','大双','合双','合大','蓝波','蓝双','蓝大','4头','8尾','猪'],  //48
                    ['绿波','4头','9尾','狗'],  //49
                ],
                rednumber: ['01','02','07','08','12','13','18','19','23','24','29','30','34','35','40','45','46'],
                bluenumber: ['03','04','09','10','14','15','20','25','26','31','36','37','41','42','47','48'],
                greennumber: ['05','06','11','16','17','21','22','27','28','32','33','38','39','43','44','49'],
                ltitle: ['01','02','03','04','05','06','07','08','09'],
                yititle: ['10','11','12','13','14','15','16','17','18','19'],
                ertitle: ['20','21','22','23','24','25','26','27','28','29'],
                santitle: ['30','31','32','33','34','35','36','37','38','39'],
                sititle: ['40','41','42','43','44','45','46','47','48','49'],
                ltail: ['10','20','30','40'],
                yitail: ['01','11','21','31','41'],
                ertail: ['02','12','22','32','42'],
                santail: ['03','13','23','33','43'],
                sitail: ['04','14','24','34','44'],
                wutail: ['05','15','25','35','45'],
                liutail: ['06','16','26','36','46'],
                qitail: ['07','17','27','37','47'],
                batail: ['08','18','28','38','48'],
                jiutail: ['09','19','29','39','49'],
                shengxiao: ['鼠','牛','虎','兔','龙','蛇','马','羊','猴','鸡','狗','猪'],
                shu: ['11','23','35','47'],
                niu: ['10','22','34','46'],
                hu: ['09','21','33','45'],
                tu: ['08','20','32','44'],
                long: ['07','19','31','43'],
                she: ['06','18','30','42'],
                ma: ['05','17','29','41'],
                yang: ['04','16','28','40'],
                hou: ['03','15','27','39'],
                ji: ['02','14','26','38'],
                gou: ['01','13','25','37','49'],
                zhu: ['12','24','36','48'],
                isShengxiao: 0,
            }
        },
        methods: {
            init(){
                // console.log(this.$route.query.levelid);
                var _this = this;

                this.params = lotterytype.apiParams(this.$route.query.id,this.$route.query.levelid);

                if(this.type == 0){  //正一特
                    var url = '/api/game/listRate/'+ this.params.nowlottery + '/' + this.params.levellottery +'oa18';
                    var suburl = '/api/setting/rateItem/'+ this.params.nowlottery + '/' + this.params.levellottery +'oa18';
                }else if(this.type == 1){  //正二特
                    var url = '/api/game/listRate/'+ this.params.nowlottery + '/' + this.params.levellottery +'正二特oa18';
                    var suburl = '/api/setting/rateItem/'+ this.params.nowlottery + '/' + this.params.levellottery +'正二特oa18';
                }else if(this.type == 2){  //正三特
                    var url = '/api/game/listRate/'+ this.params.nowlottery + '/' + this.params.levellottery +'正三特oa18';
                    var suburl = '/api/setting/rateItem/'+ this.params.nowlottery + '/' + this.params.levellottery +'正三特oa18';
                }else if(this.type == 3){  //正四特
                    var url = '/api/game/listRate/'+ this.params.nowlottery + '/' + this.params.levellottery +'正四特oa18';
                    var suburl = '/api/setting/rateItem/'+ this.params.nowlottery + '/' + this.params.levellottery +'正四特oa18';
                }else if(this.type == 4){  //正五特
                    var url = '/api/game/listRate/'+ this.params.nowlottery + '/' + this.params.levellottery +'正五特oa18';
                    var suburl = '/api/setting/rateItem/'+ this.params.nowlottery + '/' + this.params.levellottery +'正五特oa18';
                }
                
                
                if(window.localStorage.Authorization){
                    
                    _this.$httpGet(url).then(response => {
                        
                        if(response.status == 200){
                            _this.ratedata = response.data.rates;
                            // console.log(_this.ratedata);

                            if(response.data.need){
                                _this.$httpPost(suburl).then(response => {
                                
                                    if(response.status == 200){
                                        
                                    }

                                });
                            }
                        }

                    });
                }

            },
            inits(){
                // console.log(this.$route.query.levelid);
                var _this = this;

                this.params = lotterytype.apiParams(this.$route.query.id,this.$route.query.levelid);

                if(this.type == 0){  //正一特
                    var url = '/api/game/listRate/'+ this.params.nowlottery + '/' + this.params.levellottery +'oa18';
                    var suburl = '/api/setting/rateItem/'+ this.params.nowlottery + '/' + this.params.levellottery +'oa18';
                }else if(this.type == 1){  //正二特
                    var url = '/api/game/listRate/'+ this.params.nowlottery + '/' + this.params.levellottery +'正二特oa18';
                    var suburl = '/api/setting/rateItem/'+ this.params.nowlottery + '/' + this.params.levellottery +'正二特oa18';
                }else if(this.type == 2){  //正三特
                    var url = '/api/game/listRate/'+ this.params.nowlottery + '/' + this.params.levellottery +'正三特oa18';
                    var suburl = '/api/setting/rateItem/'+ this.params.nowlottery + '/' + this.params.levellottery +'正三特oa18';
                }else if(this.type == 3){  //正四特
                    var url = '/api/game/listRate/'+ this.params.nowlottery + '/' + this.params.levellottery +'正四特oa18';
                    var suburl = '/api/setting/rateItem/'+ this.params.nowlottery + '/' + this.params.levellottery +'正四特oa18';
                }else if(this.type == 4){  //正五特
                    var url = '/api/game/listRate/'+ this.params.nowlottery + '/' + this.params.levellottery +'正五特oa18';
                    var suburl = '/api/setting/rateItem/'+ this.params.nowlottery + '/' + this.params.levellottery +'正五特oa18';
                }
                
                
                if(window.localStorage.Authorization){
                    
                    if (timer) {
                        clearInterval(timer);
                        timer = null;
                    }
                    
                    _this.$httpGet(url).then(response => {
                        
                        if(response.status == 200){
                            _this.ratedata = response.data.rates;
                            // console.log(_this.ratedata);

                            if(response.data.need){
                                _this.$httpPost(suburl).then(response => {
                                
                                    if(response.status == 200){
                                        
                                    }

                                });
                            }

                            timer = setInterval(() => {
                                _this.inits();
                            }, 10 * 1000)
                        }

                    });
                }

            },
            //快捷下注
            quickbetFuns(ev,item,odds){
                var _this = this;
                if(_this.betmoney){

                    // Vue.set方法用来新增对象的属性。
                    _this.$set(_this.moneydata, item, _this.betmoney);
                    
                }
                // console.log(_this.moneydata);
                _this.nowitem = item;
            },
            changeColorFun(item){
                // console.log(item);
                var _this = this;
                
                
                this.ruleitem = item;
                

                    if(this.shengxiao.indexOf(this.ruleitem) == -1){  //不是生肖类别
                        
                        _this.isShengxiao = 0;
                    }else{
                        _this.isShengxiao ++;
                    }
                    
                    if(_this.isShengxiao < 2 && item != 'reverse'){

                        _this.moneydata = {};
                        _this.arr = [];
                        _this.betdataArr = [];  //所需提交的数组对象
                        _this.nowitem = '';

                    }
                    //
                    if(item == '单码'){

                        for(var i = 1; i < 49; i++){
                            var key = '';
                            
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            if( i%2 == 1 ){  //奇数
                                if(i < 10){
                                    key += '0'+i;
                                }else{
                                    key += i;
                                }
                                
                                if(_this.betmoney){  //是否选择快捷下注
                                    // Vue.set方法用来新增对象的属性。
                                    _this.$set(_this.moneydata, key, _this.betmoney);
                                    _this.arr.push(key);
                                    _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                                }else{
                                    _this.$set(_this.moneydata, key, '');
                                }
                                
                                
                            }
                        }
                        
                    }else if(item == '双码'){

                        for(var i = 1; i < 49; i++){
                            var key = '';

                            key += _this.tablist[_this.type] + ':单码:';

                            if( i%2 == 0 ){  //偶数
                                if(i < 10){
                                    key += '0'+i;
                                }else{
                                    key += i;
                                }
                                
                                if(_this.betmoney){  //是否选择快捷下注
                                    // Vue.set方法用来新增对象的属性。
                                    _this.$set(_this.moneydata, key, _this.betmoney);
                                    _this.arr.push(key);
                                    _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                                }else{
                                    _this.$set(_this.moneydata, key, '');
                                }
                            }
                        }
                        
                    }else if(item == '大码'){

                        for(var i = 25; i < 49; i++){
                            var key = '';

                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += i;
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                        
                    }else if(item == '小码'){

                        for(var i = 1; i < 25; i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            if(i < 10){
                                key += '0'+i;
                            }else{
                                key += i;
                            }
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                        }
                        
                    }else if(item == '小单'){

                        for(var i = 1; i < 25; i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            if( i%2 == 1 ){  //奇数
                                if(i < 10){
                                    key += '0'+i;
                                }else{
                                    key += i;
                                }
                                // Vue.set方法用来新增对象的属性。
                                _this.$set(_this.moneydata, key, _this.betmoney);
                                _this.arr.push(key);
                                _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            }
                        }
                        
                    }else if(item == '小双'){

                        for(var i = 1; i < 25; i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            if( i%2 == 0 ){  //偶数
                                if(i < 10){
                                    key += '0'+i;
                                }else{
                                    key += i;
                                }
                                // Vue.set方法用来新增对象的属性。
                                _this.$set(_this.moneydata, key, _this.betmoney);
                                _this.arr.push(key);
                                _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            }
                        }
                        
                    }else if(item == '大单'){

                        for(var i = 25; i < 49; i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            if( i%2 == 1 ){  //奇数
                                
                                key += i;
                                // Vue.set方法用来新增对象的属性。
                                _this.$set(_this.moneydata, key, _this.betmoney);
                                _this.arr.push(key);
                                _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            }
                        }
                        
                    }else if(item == '大双'){

                        for(var i = 25; i < 49; i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            if( i%2 == 0 ){  //偶数
                                
                                key += i;
                                // Vue.set方法用来新增对象的属性。
                                _this.$set(_this.moneydata, key, _this.betmoney);
                                _this.arr.push(key);
                                _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            }
                        }
                        
                    }else if(item == '合单'){

                        for(var i = 1; i < 49; i++){
                            var key = '';
                            var add = 0;
                            key += _this.tablist[_this.type] + ':单码:';
                            if(i < 10){
                                key += '0'+i;
                                add = 0 + i;
                            }else{
                                key += i;
                                add = parseInt(i.toString().substr(0,1)) + parseInt(i.toString().substr(1,1));
                            }
                            if(add % 2 == 1){  //奇数
                                // Vue.set方法用来新增对象的属性。
                                _this.$set(_this.moneydata, key, _this.betmoney);
                                _this.arr.push(key);
                                _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            } 
                        }
                    }else if(item == '合双'){

                        for(var i = 1; i < 49; i++){
                            var key = '';
                            var add = 0;
                            key += _this.tablist[_this.type] + ':单码:';
                            if(i < 10){
                                key += '0'+i;
                                add = 0 + i;
                            }else{
                                key += i;
                                add = parseInt(i.toString().substr(0,1)) + parseInt(i.toString().substr(1,1));
                            }
                            if(add % 2 == 0){  //偶数
                                // Vue.set方法用来新增对象的属性。
                                _this.$set(_this.moneydata, key, _this.betmoney);
                                _this.arr.push(key);
                                _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            } 
                        }
                    }else if(item == '合大'){

                        for(var i = 1; i < 49; i++){
                            var key = '';
                            var add = 0;
                            key += _this.tablist[_this.type] + ':单码:';
                            if(i < 10){
                                key += '0'+i;
                                add = 0 + i;
                            }else{
                                key += i;
                                var num = '';
                                num = i.toString();
                                add = parseInt(num.substr(0,1)) + parseInt(num.substr(1,1));
                            }
                            if(add > 6){  //大于等于7
                                // Vue.set方法用来新增对象的属性。
                                _this.$set(_this.moneydata, key, _this.betmoney);
                                _this.arr.push(key);
                                _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            } 
                        }
                    }else if(item == '合小'){

                        for(var i = 1; i < 49; i++){
                            var key = '';
                            var add = 0;
                            key += _this.tablist[_this.type] + ':单码:';
                            if(i < 10){
                                key += '0'+i;
                                add = 0 + i;
                            }else{
                                key += i;
                                var num = '';
                                num = i.toString();
                                add = parseInt(num.substr(0,1)) + parseInt(num.substr(1,1));
                            }
                            if(add < 7 ){  //小于等于6
                                // Vue.set方法用来新增对象的属性。
                                _this.$set(_this.moneydata, key, _this.betmoney);
                                _this.arr.push(key);
                                _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            } 
                        }
                    }else if(item == '红波'){
                        
                        for(var i=0;i < this.rednumber.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';

                            key += this.rednumber[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                        }
                    }else if(item == '绿波'){
                        
                        for(var i=0;i < this.greennumber.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';

                            key += this.greennumber[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                        }
                    }else if(item == '蓝波'){
                        
                        for(var i=0;i < this.bluenumber.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';

                            key += this.bluenumber[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                        }
                    }else if(item == '红单'){
                        
                        for(var i=0;i < this.rednumber.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            if( parseInt(this.rednumber[i])%2 == 1 ){  //奇数
                                key += this.rednumber[i];
                                // Vue.set方法用来新增对象的属性。
                                _this.$set(_this.moneydata, key, _this.betmoney);
                                _this.arr.push(key);
                                _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            }
                            
                        }
                    }else if(item == '红双'){
                        
                        for(var i=0;i < this.rednumber.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            if( parseInt(this.rednumber[i])%2 == 0 ){  //偶数
                                key += this.rednumber[i];
                                // Vue.set方法用来新增对象的属性。
                                _this.$set(_this.moneydata, key, _this.betmoney);
                                _this.arr.push(key);
                                _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            }
                            
                        }
                    }else if(item == '红大'){
                        
                        for(var i=0;i < this.rednumber.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            if( parseInt(this.rednumber[i]) > 24 ){  //
                                key += this.rednumber[i];
                                // Vue.set方法用来新增对象的属性。
                                _this.$set(_this.moneydata, key, _this.betmoney);
                                _this.arr.push(key);
                                _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            }
                            
                        }
                    }else if(item == '红小'){
                        
                        for(var i=0;i < this.rednumber.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            if( parseInt(this.rednumber[i]) < 25 ){  //
                                key += this.rednumber[i];
                                // Vue.set方法用来新增对象的属性。
                                _this.$set(_this.moneydata, key, _this.betmoney);
                                _this.arr.push(key);
                                _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            }
                            
                        }
                    }else if(item == '绿单'){
                        
                        for(var i=0;i < this.greennumber.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            if( parseInt(this.greennumber[i])%2 == 1 ){  //奇数
                                key += this.greennumber[i];
                                // Vue.set方法用来新增对象的属性。
                                _this.$set(_this.moneydata, key, _this.betmoney);
                                _this.arr.push(key);
                                _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            }
                            
                        }
                    }else if(item == '绿双'){
                        
                        for(var i=0;i < this.greennumber.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            if( parseInt(this.greennumber[i])%2 == 0 ){  //偶数
                                key += this.greennumber[i];
                                // Vue.set方法用来新增对象的属性。
                                _this.$set(_this.moneydata, key, _this.betmoney);
                                _this.arr.push(key);
                                _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            }
                            
                        }
                    }else if(item == '绿大'){
                        
                        for(var i=0;i < this.greennumber.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            if( parseInt(this.greennumber[i]) > 24 ){  //
                                key += this.greennumber[i];
                                // Vue.set方法用来新增对象的属性。
                                _this.$set(_this.moneydata, key, _this.betmoney);
                                _this.arr.push(key);
                                _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            }
                            
                        }
                    }else if(item == '绿小'){
                        
                        for(var i=0;i < this.greennumber.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            if( parseInt(this.greennumber[i]) < 25 ){  //
                                key += this.greennumber[i];
                                // Vue.set方法用来新增对象的属性。
                                _this.$set(_this.moneydata, key, _this.betmoney);
                                _this.arr.push(key);
                                _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            }
                            
                        }
                    }else if(item == '蓝单'){
                        
                        for(var i=0;i < this.bluenumber.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            if( parseInt(this.bluenumber[i])%2 == 1 ){  //奇数
                                key += this.bluenumber[i];
                                // Vue.set方法用来新增对象的属性。
                                _this.$set(_this.moneydata, key, _this.betmoney);
                                _this.arr.push(key);
                                _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            }
                            
                        }
                    }else if(item == '蓝双'){
                        
                        for(var i=0;i < this.bluenumber.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            if( parseInt(this.bluenumber[i])%2 == 0 ){  //偶数
                                key += this.bluenumber[i];
                                // Vue.set方法用来新增对象的属性。
                                _this.$set(_this.moneydata, key, _this.betmoney);
                                _this.arr.push(key);
                                _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            }
                            
                        }
                    }else if(item == '蓝大'){
                        
                        for(var i=0;i < this.bluenumber.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            if( parseInt(this.bluenumber[i]) > 24 ){  //
                                key += this.bluenumber[i];
                                // Vue.set方法用来新增对象的属性。
                                _this.$set(_this.moneydata, key, _this.betmoney);
                                _this.arr.push(key);
                                _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            }
                            
                        }
                    }else if(item == '蓝小'){
                        
                        for(var i=0;i < this.bluenumber.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            if( parseInt(this.bluenumber[i]) < 25 ){  //
                                key += this.bluenumber[i];
                                // Vue.set方法用来新增对象的属性。
                                _this.$set(_this.moneydata, key, _this.betmoney);
                                _this.arr.push(key);
                                _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            }
                            
                        }
                    }else if(item == '0头'){
                        
                        for(var i=0;i < this.ltitle.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.ltitle[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '1头'){
                        
                        for(var i=0;i < this.yititle.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.yititle[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '2头'){
                        
                        for(var i=0;i < this.ertitle.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.ertitle[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '3头'){
                        
                        for(var i=0;i < this.santitle.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.santitle[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '4头'){
                        
                        for(var i=0;i < this.sititle.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.sititle[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '0尾'){
                        
                        for(var i=0;i < this.ltail.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.ltail[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '1尾'){
                        
                        for(var i=0;i < this.yitail.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.yitail[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '2尾'){
                        
                        for(var i=0;i < this.ertail.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.ertail[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '3尾'){
                        
                        for(var i=0;i < this.santail.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.santail[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '4尾'){
                        
                        for(var i=0;i < this.sitail.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.sitail[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '5尾'){
                        
                        for(var i=0;i < this.wutail.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.wutail[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '6尾'){
                        
                        for(var i=0;i < this.liutail.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.liutail[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '7尾'){
                        
                        for(var i=0;i < this.qitail.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.qitail[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '8尾'){
                        
                        for(var i=0;i < this.batail.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.batail[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '9尾'){
                        
                        for(var i=0;i < this.jiutail.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.jiutail[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '鼠'){
                        
                        for(var i=0;i < this.shu.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.shu[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '牛'){
                        
                        for(var i=0;i < this.niu.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.niu[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '虎'){
                        
                        for(var i=0;i < this.hu.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.hu[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '兔'){
                        
                        for(var i=0;i < this.tu.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.tu[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '龙'){
                        
                        for(var i=0;i < this.long.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.long[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '蛇'){
                        
                        for(var i=0;i < this.she.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.she[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '马'){
                        
                        for(var i=0;i < this.ma.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.ma[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '羊'){
                        
                        for(var i=0;i < this.yang.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.yang[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '猴'){
                        
                        for(var i=0;i < this.hou.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.hou[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '鸡'){
                        
                        for(var i=0;i < this.ji.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.ji[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '狗'){
                        
                        for(var i=0;i < this.gou.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.gou[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == '猪'){
                        
                        for(var i=0;i < this.zhu.length;i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            key += this.zhu[i];
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == 'all'){  //全选
                        for(var i = 1; i < 50; i++){
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';
                            
                            if(i < 10){
                                key += '0'+i;
                            }else{
                                key += i;
                            }
                            // Vue.set方法用来新增对象的属性。
                            _this.$set(_this.moneydata, key, _this.betmoney);
                            _this.arr.push(key);
                            _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            
                        }
                    }else if(item == 'reverse'){  //反选

                        _this.moneydata = {};
                        _this.betdataArr = [];  //所需提交的数组对象
                        _this.nowitem = '';
                        
                        for(var i = 1; i < 50; i++){

                            
                            var key = '';
                            key += _this.tablist[_this.type] + ':单码:';

                            if(i < 10){
                                key += '0'+i;
                            }else{
                                key += i;
                            }
                            
                            if(_this.arr.indexOf(key) == -1){
                                // Vue.set方法用来新增对象的属性。
                                _this.$set(_this.moneydata, key, _this.betmoney);
                                _this.arr.push(key);
                                _this.betdataArr.push({'item': key,'value': _this.betmoney,'balls': []});
                            }else{
                                
                                _this.arr.splice(_this.arr.indexOf(key),1);
                            }
                            
                        }

                    }
                
            },
            //切换tab
            changeFun(ind){
                this.type = ind;
                this.moneydata = {};
                this.arr = [];
                this.betdataArr = [];  //所需提交的数组对象
                this.nowitem = '';
                this.init();
            },
        },
        mounted(){
            this.inits();
        },
        beforeDestroy(){
            clearInterval(timer);
        },
        watch :{
            betmoney: function(now,old){
                // console.log(now);
                if(now == '' || now == 0){
                    for(var item in this.moneydata){
                        this.moneydata[item] = '';
                    }
                    
                }else{
                    this.betdataArr = [];
                    for(var item in this.moneydata){
                        
                        this.moneydata[item] = now;
                        
                        this.betdataArr.push({'item': item,'value': now,'balls': []});

                    }
                    
                }
            },
            resetinp: function(now,old){

                if(now != 0){   //重填下注金额

                    this.moneydata = {};  //清空所有下注金额
                    this.betdataArr = [];
                    this.arr = [];
                    
                }
            },
            moneydata: {
                
                //注意：当观察的数据为对象或数组时，curVal和oldVal是相等的，因为这两个形参指向的是同一个数据对象
　　　　　　　　　handler(newValue, oldValue) {

                    var _this = this;
        // 　　　　　　console.log(newValue[_this.nowitem],newValue,this.nowitem)
                    //群主模式选择  触发改变（覆盖新增数组对象）
                    //随意输入  触发改变  (自定义快捷下注，则push或者修改对象数据)
                    if(_this.betmoney){  //是否选择快捷下注
                        if(newValue[_this.nowitem] != '' && newValue[_this.nowitem] != '0' && newValue[_this.nowitem] != undefined){
                        
                            if (_this.arr.indexOf(_this.nowitem) == -1) {
                                _this.arr.push(_this.nowitem);
                                _this.betdataArr.push({'item': _this.nowitem,'value': newValue[_this.nowitem],'balls': []});
                            } else {
                                for(var i=0;i<_this.betdataArr.length;i++){

                                    if(_this.nowitem == _this.betdataArr[i].item){
                                        _this.betdataArr[i].value= newValue[_this.nowitem];
                                    }
                                }
                            }


                        }else{  //当前改变值为空
                            
                            for(var i=0;i<_this.betdataArr.length;i++){

                                if(_this.betdataArr[i].item == _this.nowitem){
                                    _this.betdataArr.splice(i,1);
                                }

                            }

                        }

                        var betdataObj = {};
                        betdataObj.game = _this.params.nowlottery;
                        betdataObj.items = _this.betdataArr;
                        
                        if(_this.betdataArr.length == 0){
                            _this.$emit('betdataObj',{});
                        }else{
                            _this.$emit('betdataObj',betdataObj);
                        }
                        // console.log('------watch',betdataObj);
                    }
                    
        　　　　 },
        　　　　 deep: true
            },
            openBet: function(now,old){
                // console.log(now,old);
                this.init();
            },
            ninetime: function(now,old){
                console.log('------------90s  刷新');
                //90s  刷新数据
                this.init();
            },
        },
    }
</script>
